################################################################################
#
# sysupdate
#
################################################################################

SYSUPDATE_VERSION = f4d67d69b70eb515059f57e731d6c56a56eb7030
SYSUPDATE_SITE = git@192.168.20.222:lijinlei/sysupdate.git
SYSUPDATE_SITE_METHOD = git

SYSUPDATE_ALWAYS_BUILD = YES
SYSUPDATE_INSTALL_STAGING = YES

OUT_BIN = sysupdate
OUT_LIBRARY = libsysupdate.so

SYSUPDATE_MAKE_OPTS += \
					   CC=${TARGET_CC} 

define SYSUPDATE_BUILD_CMDS
    #$(MAKE) clean  -C $(@D) 
    $(MAKE) $(SYSUPDATE_MAKE_OPTS) ${OUT_BIN} -C $(@D)
    $(MAKE) $(SYSUPDATE_MAKE_OPTS) ${OUT_LIBRARY} -C $(@D)
endef


define SYSUPDATE_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 0755 $(@D)/${OUT_BIN} $(TARGET_DIR)/usr/bin/
	$(INSTALL) -D -m 0755 $(@D)/${OUT_LIBRARY} $(TARGET_DIR)/usr/lib/
endef

$(eval $(generic-package))
